// 导入
import request from "./request";
// 获取轮播图的信息
export const findBanner = () => {
  return request({
    url: "/mall-api/index/findBanner",
  });
};
// 获取一级菜单的信息
export const findCategory = () => {
  return request({
    url: "/mall-api/index/findCategory1",
  });
};
// 获取猜你喜欢的信息
export const findListGoods = () => {
  return request({
    url: "/mall-api/index/findListGoods",
  });
};
// 获取人气推荐的信息
export const findRecommendGoods = () => {
  return request({
    url: "/mall-api/index/findRecommendGoods",
  });
};
// 获取分页的数据
export const finfGoodsList = ({ page, limit }) => {
  return request({
    url: `/mall-api/goods/list/${page}/${limit}`,
  });
};
